package com.jianyun.jyzs.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

@DatabaseTable(tableName = "tb_sysconfig")
public class SysConfig implements Serializable{
	
	private static final long serialVersionUID = 20150622111122L;

	public final static String ID_FIELD_NAME = "enterpriseCode";//这里用一个常量来设置属性的名字，这样我们在中就可以直接使用该名字
	
	@DatabaseField(id=true,columnName=ID_FIELD_NAME)
	private String enterpriseCode;//企业号
	@DatabaseField
	private String bcHttpUrl;//建云宝系统Http URL
	@DatabaseField
	private String bcTcpUrl;//建云宝系统TCP URL
	@DatabaseField
	private String bcfHttpUrl;//建云宝文件系统Http URL
	@DatabaseField
	private String erpHttpUrl;//ERP系统登录Http URL
	@DatabaseField
	private String erpRootUrl;//ERP系统登录Http URL
	@DatabaseField
	private Integer androidVersionCode;//App版本号
	@DatabaseField
	private String androidVersionName;//App版本名称
	@DatabaseField
	private String androidDownLoad;//App下载URL（完整地址）
	@DatabaseField
	private Integer androidAppSize;//App字节数
	@DatabaseField
	private Integer isForceUpdate;//是否强制升级
	@DatabaseField
	private Integer isAutoPlayAudio;//是否自动播放语音
	@DatabaseField
	private Integer isLocData;//是否定位数据产生地
	@DatabaseField
	private Integer isServerStop;//服务端是否正在维护
	@DatabaseField
	private String stopOverTime;//预计维护结束时刻
	@DatabaseField
	private String enable;//预计维护结束时刻

	public SysConfig(){}
	
	public SysConfig(String enterpriseCode, String bcHttpUrl,
                     String bcTcpUrl, String bcfHttpUrl, String erpHttpUrl,
                     Integer androidVersionCode, String androidDownLoad, Integer androidAppSize,
                     Integer isForceUpdate, Integer isAutoPlayAudio, Integer isLocData,
                     Integer isServerStop, String stopOverTime, String erpRootUrl, String enable) {
		super();
		this.enterpriseCode = enterpriseCode;
		this.bcHttpUrl = bcHttpUrl;
		this.bcTcpUrl = bcTcpUrl;
		this.bcfHttpUrl = bcfHttpUrl;
		this.erpHttpUrl = erpHttpUrl;
		this.androidVersionCode = androidVersionCode;
		this.androidDownLoad = androidDownLoad;
		this.androidAppSize = androidAppSize;
		this.isForceUpdate = isForceUpdate;
		this.isAutoPlayAudio = isAutoPlayAudio;
		this.isLocData = isLocData;
		this.isServerStop = isServerStop;
		this.stopOverTime = stopOverTime;
		this.erpRootUrl = erpRootUrl;
		this.enable = enable;
	}
	public String getEnterpriseCode() {
		return enterpriseCode;
	}
	public String getErpRootUrl() {
		return erpRootUrl;
	}

	public void setErpRootUrl(String erpRootUrl) {
		this.erpRootUrl = erpRootUrl;
	}

	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}
	public String getBcHttpUrl() {
		return bcHttpUrl;
	}
	public void setBcHttpUrl(String bcHttpUrl) {
		this.bcHttpUrl = bcHttpUrl;
	}
	public String getBcTcpUrl() {
		return bcTcpUrl;
	}
	public void setBcTcpUrl(String bcTcpUrl) {
		this.bcTcpUrl = bcTcpUrl;
	}
	public String getBcfHttpUrl() {
		return bcfHttpUrl;
	}
	public void setBcfHttpUrl(String bcfHttpUrl) {
		this.bcfHttpUrl = bcfHttpUrl;
	}
	public String getErpHttpUrl() {
		return erpHttpUrl;
	}
	public void setErpHttpUrl(String erpHttpUrl) {
		this.erpHttpUrl = erpHttpUrl;
	}
	public Integer getAndroidVersionCode() {
		return androidVersionCode;
	}

	public void setAndroidVersionCode(Integer androidVersionCode) {
		this.androidVersionCode = androidVersionCode;
	}
	public String getAndroidDownLoad() {
		return androidDownLoad;
	}

	public void setAndroidDownLoad(String androidDownLoad) {
		this.androidDownLoad = androidDownLoad;
	}

	public Integer getAndroidAppSize() {
		return androidAppSize;
	}

	public void setAndroidAppSize(Integer androidAppSize) {
		this.androidAppSize = androidAppSize;
	}

	public Integer getIsForceUpdate() {
		return isForceUpdate;
	}
	public void setIsForceUpdate(Integer isForceUpdate) {
		this.isForceUpdate = isForceUpdate;
	}
	public Integer getIsAutoPlayAudio() {
		return isAutoPlayAudio;
	}
	public void setIsAutoPlayAudio(Integer isAutoPlayAudio) {
		this.isAutoPlayAudio = isAutoPlayAudio;
	}
	public Integer getIsLocData() {
		return isLocData;
	}
	public void setIsLocData(Integer isLocData) {
		this.isLocData = isLocData;
	}
	public Integer getIsServerStop() {
		return isServerStop;
	}
	public void setIsServerStop(Integer isServerStop) {
		this.isServerStop = isServerStop;
	}
	public String getStopOverTime() {
		return stopOverTime;
	}
	public void setStopOverTime(String stopOverTime) {
		this.stopOverTime = stopOverTime;
	}

	public String getAndroidVersionName() {
		return androidVersionName;
	}

	public void setAndroidVersionName(String androidVersionName) {
		this.androidVersionName = androidVersionName;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}
	

}